package com.ruoyi.business.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 视频对象 t_video
 * 
 * @author lcz
 * @date 2025-01-19
 */
@ApiModel("视频对象")
public class Video extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty("主键ID")
    private Long id;

    /** 视频名称 */
    @Excel(name = "视频名称")
    @ApiModelProperty("视频名称")
    private String name;

    /** 封面 */
    @Excel(name = "封面")
    @ApiModelProperty("封面")
    private String cover;

    /** 大纲 */
    @Excel(name = "大纲")
    @ApiModelProperty("大纲")
    private String outline;

    /** 连接 */
    @Excel(name = "连接")
    @ApiModelProperty("连接")
    private String link;

    /** 时长(秒) */
    @Excel(name = "时长(秒)")
    @ApiModelProperty("时长(秒)")
    private Long duration;

    /** 类别id */
    @ApiModelProperty("类别id")
    private Long categoryId;

    /** 类别名称 */
    @Excel(name = "类别名称")
    @ApiModelProperty("类别名称")
    private String categoryName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setOutline(String outline) 
    {
        this.outline = outline;
    }

    public String getOutline() 
    {
        return outline;
    }
    public void setLink(String link) 
    {
        this.link = link;
    }

    public String getLink() 
    {
        return link;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("cover", getCover())
            .append("outline", getOutline())
            .append("link", getLink())
            .append("duration", getDuration())
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
